package day2;
import java.util.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class List2 {
    public static void main(String[] args) {
        List l2=new LinkedList();
        l2.add("弼马温");
        l2.add("赤脚大仙");
        //l2.addFirst("猪八戒");
        ((LinkedList)l2).addFirst("猪八戒");
        System.out.println(l2.size());
        for(Object o:l2)
            System.out.println(o);
    }
}
